package com.test.test_rest.miner_pool.domain.gen;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class SuperCusAccountLog implements Serializable {
    private Integer id;

    /**
     * 用户Id
     */
    private Integer userId;

    /**
     * 类型:  提现 withdrawal 收益 profit
     */
    private String type;

    /**
     * 数量
     */
    private BigDecimal num;

    private Date createTime;

    /**
     * 算力Id
     */
    private Integer minerId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户Id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 用户Id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 类型:  提现 withdrawal 收益 profit
     */
    public String getType() {
        return type;
    }

    /**
     * 类型:  提现 withdrawal 收益 profit
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 数量
     */
    public BigDecimal getNum() {
        return num;
    }

    /**
     * 数量
     */
    public void setNum(BigDecimal num) {
        this.num = num;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 算力Id
     */
    public Integer getMinerId() {
        return minerId;
    }

    /**
     * 算力Id
     */
    public void setMinerId(Integer minerId) {
        this.minerId = minerId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", type=").append(type);
        sb.append(", num=").append(num);
        sb.append(", createTime=").append(createTime);
        sb.append(", minerId=").append(minerId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperCusAccountLog other = (SuperCusAccountLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getMinerId() == null ? other.getMinerId() == null : this.getMinerId().equals(other.getMinerId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getMinerId() == null) ? 0 : getMinerId().hashCode());
        return result;
    }
}